@charset "utf-8";
@import "common/reset";
@import "common/common";
.web_box {
    header{
        font-size: 0;
        .logo{
            text-align: center;
            margin-top: 56px;
            margin-bottom: 142px;
        }
        .nav{
            position: relative;
            width: 100%;
            height: 98px;
            background: #AF1730;
            z-index: 333;
            .menu{
                position: absolute;
                left: 50%;
                margin-left: -342px;
                bottom: 38px;
                width: 684px;
                box-shadow: 0 0 20px #AF1730;
                .menuDesc{
                    position: relative;
                    float: left;
                    background: #fff;
                    width: 170px;
                    height: 140px;
                    border-right: 1px solid #e5e5e5;
                    >a{
                        position: absolute;
                        top: 50%;
                        transform: translateY(-25%);
                        display: inline-block;
                        width: 100%; 
                        height: 100%;
                        text-align: center;
                        color: #666;
                        font-size: 17px;
                        i{
                            width: 100%;
                            display: inline-block;
                            height: 52px;
                        }
                    }
                    .menu-lsit{
                        position: absolute;
                        top: 155px;  
                        width: 100%;
                        display: none;
                        >ul{
                            width: 100%;
                            >li{
                                position: relative;
                                left: -12%;
                                width: 100%;
                                height: 40px;
                                line-height: 40px;
                                padding: 0 10px;
                                margin: 0 10px;
                                background: #fff;
                                border-bottom: 1px solid #e5e5e5;
                                text-align: center;
                                WORD-BREAK: break-all;
//                              overflow: hidden;
                                a{
                                    font-size: 14px;
                                    color: #989898;
                                }
                                &:hover{
//                                  height: 85px;
//                                  line-height: 15px;
//                                  max-height: 80px;
//                                  padding-top: 5px;
                                    a{
                                        color: #AF1730;
                                        WORD-BREAK: break-all;
                                    }
                                    .product-detail,.product-list{
                                        display: block;
                                    }
                                }
                            }
                            &:before{
                                position: absolute;
                                top: -15px;
                                left: 50%;
                                transform: translateX(-50%);
                                content: "";
                                width: 0;
                                height: 0;
                                display: block;
                                border-bottom: 15px solid #fff;
                                border-left: 15px solid transparent;
                                border-right: 15px solid transparent;
                            }
                            >li{
                                .product-detail{
                                    display: none;
                                    position: absolute;
                                    top: 0;
                                    left: -260px;
                                    width: 245px;
                                    background: #fff;
                                    border-right:15px solid  rgba(200,200,200,0.1);
                                    .product-img{
                                        position: absolute;
                                        top: 60%;
                                        left: 2%;
                                        margin-top: -51px;
                                        display: inline-block;
                                        width: 87px;
                                        height: 92px;
                                        overflow: hidden;
                                        img{
                                            width: 100%;
                                        }
                                    }
                                    .product-desc{
                                        display: inline-block;
                                        width: 150px;
                                        overflow: hidden;
                                        margin-left: 70px;
                                        >h4{
                                            height: 28px;
                                            line-height: 25px;
                                            font-size: 12px;
                                            width: 100%;
                                            white-space: normal;
                                            text-align: left;
                                            padding: 25px 0;
                                            overflow: hidden;
                                            text-overflow: ellipsis;
                                            display: -webkit-box;
                                            -webkit-line-clamp: 2;
                                            -webkit-box-orient: vertical;
                                            word-break: normal;
                                        }
                                        >p{
                                            width: 100%;
                                            white-space:normal;
                                            text-align: left;
                                            color: #999;
                                            padding-bottom: 20px;
                                            font-size: 12px;
                                            line-height: 20px;
                                            text-align: left;
                                            text-justify: newspaper;
                                        }
                                    }
                                }
                                .product-list{
                                    display: none;
                                    position: absolute;
                                    top: 0;
                                    left: 100%;
                                    width: 160%;
                                    background: #fff;
                                    text-align: left;
                                    border-left:15px solid  rgba(200,200,200,0.1);
//                                      z-index: 99999;
                                    ul{
                                        li{
                                            padding-left: 20px;
                                            height: 40px;
                                            line-height: 40px;
                                            color: #999;
                                            border-bottom: 1px solid #d0d0d0;
                                            a{
                                                color: #999999;
                                            }
                                        }
                                        li:hover a{
                                            color: #af1730;
                                        }
                                    }
                                }
                            }
                        }
                    }
                    transition: transform .1s;
                    &:hover{
                        transition: transform .2s;
                        transform: translateY(-10px);
                        box-shadow: 0 3px 20px #AF1730;
                        span{
                            color: #AF1730;
                        }
                        .menu-lsit{
                            display: block;
                        }
                    }
                }
                &:after{
                    content: "";
                    display: block;
                    clear: both;
                }         
            }
            .lang-cut{
                position: absolute;
                top: -30px;
                right: 0;
                p{
                    position: relative;
                    font-size: 14px;
                    span{
                        color: #999;
                        padding: 0 8px;
                        padding-right: 10px;
                        cursor: pointer;
                        &:hover{
                            color: #AF1730;
                        }
                    }
                    span:first-child{
                        color: #AF1730;
                        border-right: 1px solid #999;
                        cursor: default;
                    }
                }
            }
        }
    }
    //轮播图
    .index_kv {
        width: 100%;
        height: 400px;
        overflow: hidden;
        margin-bottom: 60px;
        box-shadow: 0 10px 15px rgba(175, 23, 48, .1);
        position: relative;
            .tu{
                width:100%;
                position: relative;
                a{
                    width:100%;
                    position: absolute;
                    display: none;
                    img{
                        width:100%;
                    }
                }
                a:first-child{
                    display: block;
                }
            }
            div.swiper-button-prev{
                left: 50px;
            }
            div.swiper-button-next{
                right: 50px;
            }
            .btn{
                width: 100px;
                height: 15px;
                position: absolute;
                bottom: 10px;
                left: 50%;
                margin-left: -50px;
                ul{
                    li{
                        float: left;
                        width: 10px;
                        height: 10px;
                        line-height: 10px;
                        border-radius: 50%;
                        border: 1px solid #FFFFFF;
                        margin: 0 4px; 
                    }
                    li.on{
                        background: red;
                        border-color: red;
                    }
                }
            }
            .cent{
                #left_arrow,#right_arrow{
                    cursor: pointer;
                    position: absolute;
                    top: 50%;
                    transform: translateY(-50%);
                    width: 40px;
                    img{
                        width: 100%;
                    }
                }
                #left_arrow{
                    left: 2%;
                }
                #right_arrow{
                    right: 2%;
                }
            }
            
    }
    //目录
    >p{
        margin-bottom: 79px;
        img{
            vertical-align: middle;
            margin-left: 12px;
        }
        span{
            color: #af1730;
        }
        span:last-child{
            color: #999;
        }
    }
    //产品系列
    .index_series {
        .series_box {
            padding: 60px 0 5px;
            ul {
                li {
                    width: 33%;
                    .series_info {
                        margin: 0 auto 60px auto;
                        width: 287px;
                        overflow: hidden;
                        text-align: center;
                        box-shadow: 0 10px 15px rgba(175, 23, 48, .1);
                        img {
                            width: 100%;
                        }
                        p {
                            font-size: 16px;
                            font-weight: bold;
                            color: #999;
                            line-height: 75px;
                        }
                        &:hover {
                            transform: scale(1.1);
                        }
                    }
                }
            }
        }
    }
    //产品
    .index_product {
        text-align: center;
        .product_box {
            position: relative;
            width: 100%;
            overflow: hidden;
            padding: 60px 0 60px;
            padding-left: 20px;
            padding-right: 20px;
            >ul.img-ct {
                width: 99999909px;
                li {
                    width: 125px;
                    a {
                        .product_info {
                            width: 178px;
                            height: 216px;
                            margin: 0 auto;
                            text-align: center;
                            box-shadow: 0 10px 15px rgba(175, 23, 48, .1);
                            padding: 16px 0 46px;
                            position: relative;
                            overflow: hidden;
                            .i-product-img{
                                height: 178px;
                                margin: 0 auto;
                                margin-top: 12px;
                                overflow: hidden;
                                img {
                                    width: 100%;
                                }
                            }
                            
                            p {
                                font-size: 14px;
                            }
                            .triangle {//倒三角
                                position: absolute;
                                top: 0;
                                left: 50%;
                                transform: translateX(-50%);
                                border-top: 30px solid;
                                border-left: 30px solid transparent;
                                border-right: 30px solid transparent;
                            }
                            &:hover {
                                transform: scale(1.1);
                            }
                        }
                    }
                    &:nth-child(1) a p{
                        color: #babaca;
                    }
                    &:nth-child(1) .triangle {
                        border-top-color: #babaca;
                    }
                    &:nth-child(2) a {
                        color: #86b6db;
                    }
                    &:nth-child(2) .triangle {
                        border-top-color: #86b6db;
                    }
                    &:nth-child(3) a {
                        color: #c24b8c;
                    }
                    &:nth-child(3) .triangle {
                        border-top-color: #c24b8c;
                    }
                    &:nth-child(4) a {
                        color: #ef7f00;
                    }
                    &:nth-child(4) .triangle {
                        border-top-color: #ef7f00;
                    }
                    &:nth-child(5) a {
                        color: #6f3379;
                    }
                    &:nth-child(5) .triangle {
                        border-top-color: #6f3379;
                    }
                }
            }
            div.icon-zuoyoujiantou,
            div.icon-zuoyoujiantou2{
                color: #AF1730;
            }
            div.swiper-button-next, .swiper-container-rtl .swiper-button-prev {
                right: 50px;
                left: auto;
            }
        }
        .product_btn {
                display: inline-block;
                width: 210px;
                color: #999;
                font-size: 30px;
                text-align: center;
                border-bottom: 1px solid #999;
                margin-bottom: 50px;
            }
    }
    //健康资讯
    .index_info {
        padding-bottom: 90px;
        .title{
            margin-bottom: 60px;
        }
        ul {
            li {
                width: 352px;
                height: 360px;
                padding-bottom: 50px;
                position: relative;
                box-shadow: 0 10px 15px rgba(175, 23, 48, .1);
                .i_img{
                    width: 100%;
                    height: 230px;
                    overflow: hidden;
                    margin-bottom: 35px;
                    img {
                        height: 100%;
                    }
                }
                
                h4 {
                    line-height: 80px;
                    font-weight: 400;
                    font-size: 17px;
                    color: #666666;
                    text-align: center;
                    position: relative;
//                  
                }
                
                p {
                    color: #999999;
                    font-size: 17px;
                    font-weight: bold;
                    padding: 0 20px;
                    height: 105px;
                    margin: 0 auto;
                    text-align: center;
                    line-height: 28px;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    display: -webkit-box;
                    -webkit-line-clamp: 4;
                    -webkit-box-orient: vertical;
                }
                a {
                    position: absolute;
                    width: 144px;
                    left: 50%;
                    transform: translate(-50%, 50%);
                    background: linear-gradient(#ff0000, #b01730);
                    line-height: 50px;
                    color: #fff;
                    text-align: center;
                    font-size: 14px;
                    bottom: 0;
                }
                &:nth-child(2) {
                    margin: 0 72px;
                }
                &:hover {
                    transform: translateY(-20px);
                    box-shadow: 0 10px 15px rgba(175, 23, 48, .3);
                }
            }
        }
    }
}


